<script type="text/javascript" src="js/biz.js"></script>

<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<link href="images/skin.css" rel="stylesheet" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	background-color: #EEF2FB;
}
-->
</style>
<style type="text/css">

<!--

body {
	margin-left: 3px;
	margin-top: 0px;
	margin-right: 3px;
	margin-bottom: 0px;
}

.wSTYLE1 {
	color: #e1e2e3;
	font-size: 12px;
}

.wSTYLE6 {color: #000000; font-size: 12; }
.wSTYLE10 {color: #000000; font-size: 12px; }
.wSTYLE19 {
	color: #344b50;
	font-size: 12px;
}
.wSTYLE21 {
	font-size: 12px;
	color: #3b6375;
}

.wSTYLE22 {
	font-size: 12px;
	color: #295568;
}

#addClass{ display:none;
	}
-->
</style>
<body>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="17" valign="top" background="images/mail_leftbg.gif"><img src="images/left-top-right.gif" width="17" height="29" /></td>
    <td valign="top" background="images/content-bg.gif"><table width="100%" height="31" border="0" cellpadding="0" cellspacing="0" class="left_topbg" id="table2">
      <tr>
        <td height="31"><div class="titlebt">欢迎界面</div></td>
      </tr>
    </table></td>
    <td width="16" valign="top" background="images/mail_rightbg.gif"><img src="images/nav-right-bg.gif" width="16" height="29" /></td>
  </tr>
  <tr>
    <td height="128" valign="middle" background="images/mail_leftbg.gif">&nbsp;</td>
    <td valign="top" bgcolor="#F7F8F9">

    
    <!-- 主体内容开始 -->
    
    
    <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="30"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td height="24" bgcolor="#353c44"><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="6%" height="19" valign="bottom"><div align="center"><img src="images/tb.gif" width="14" height="14" /></div></td>
                <td width="94%" valign="bottom"><span class="wSTYLE1"> 专业管理</span></td>
              </tr>
            </table></td>
            <td><div align="right"><span class="wSTYLE1">
              <input type="checkbox" name="checkbox11" id="checkbox11" />
              全选      &nbsp;&nbsp;<img src="images/add.gif" width="10" height="10" /><span onClick="addClass()"> 添加</span>     &nbsp; <img src="images/del.gif" width="10" height="10" /> 删除    &nbsp;&nbsp;  &nbsp;</span><span class="wSTYLE1"> &nbsp;</span></div></td>
          </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td><table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#a8c7ce">
       <tr>
        <td width="20%" height="20" bgcolor="d3eaef" class="wSTYLE10"><div align="center"></div></td>
        <td width="40%" height="20" bgcolor="d3eaef" class="wSTYLE6"><div align="center">专业名称</div></td>
        <td width="40%" height="20" bgcolor="d3eaef" class="wSTYLE6"><div align="center">基本操作</div></td>
      </tr>
      
      <!--增加班级 -->
      <form method="post" action="accpbizaddBiz.action"  onSubmit="return addClassClick()">
      <!-- 想法是，在循环的 时候 ，同时 循环两种    ，一种显示，另外一种隐藏，当用户点击修改的 时候，显示另外一中，，隐藏当前显示的这一种 -->
       <tr id="addClass">
            <td height="20" bgcolor="#FFFFFF"><div align="center"></div></td>
            <td height="20" bgcolor="#FFFFFF" class="wSTYLE6"><div align="center">
              <input name="accpbiz.bname" type="text" size="10"/>
            </div></td>
            <td height="20" bgcolor="#FFFFFF"><div align="center" class="wSTYLE21"><input name="" type="submit" value="提交">| <input onClick="quxiao('addClass')" name="" type="button" value="取消" ></div></td>
          </tr>
      </form>
           <!-- 新增 班级结束 -->
          
       <!--循环开始 -->
               <c:forEach var="list" items="${list}" varStatus="index"> 
                <form method="post" action="accpbizupBiz.action" >
               <tr id="${list.bid}" style="display:none" >
               <td height="20" bgcolor="#FFFFFF"><div align="center"></div></td>
               <td   height="20" bgcolor="#FFFFFF" class="wSTYLE6"><div align="center"  >
               		<input name="accpbiz.bid" type="text" value="${list.bid}" style="display: none">
                  <input name="accpbiz.bname" type="text" id="AddUName${list.bid}" value="${list.bname}" size="10"/>
               </div></td>
            <td height="20" bgcolor="#FFFFFF"><div align="center" class="wSTYLE21"><input  name="" type="submit" value="提交">| <input onClick="quxiao(${list.bid})" name="" type="button" value="取消" ></div></td>
         </tr>
          <tr id="${list.bid}1">
            <td height="20" bgcolor="#FFFFFF"><div align="center"></div></td>
            <td height="20" bgcolor="#FFFFFF" class="wSTYLE6"><div align="center"><span class="STYLE19">${list.bname}</span></div></td>
            
            <td height="20" bgcolor="#FFFFFF"><div align="center" class="wSTYLE21">
            <a onClick="selectForm(${list.bid})"  href="javascript:void(0)">修改</a>
            <a onClick="deleteForm(${list.bid})" href="javascript:void(0)" >删除</a> </div></td>
          </tr>
          </form>
        </c:forEach>
          
       
    </table></td>
  </tr>
  <tr>
    <td height="30"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="33%"><div align="left"><span class="wSTYLE22">&nbsp;&nbsp;&nbsp;&nbsp;共有<strong> ${sessionScope.bizCount}</strong> 条记录</span></div></td>
        <td width="67%">&nbsp;</td>
      </tr>
    </table></td>
  </tr>
</table>
    <!-- 结束 -->
    &nbsp;</td>
    <td background="images/mail_rightbg.gif">&nbsp;</td>
  </tr>
  <tr>
    <td valign="bottom" background="images/mail_leftbg.gif"><img src="images/buttom_left2.gif" width="17" height="17" /></td>
    <td background="images/buttom_bgs.gif"><img src="images/buttom_bgs.gif" width="17" height="17"></td>
    <td valign="bottom" background="images/mail_rightbg.gif"><img src="images/buttom_right2.gif" width="16" height="17" /></td>
  </tr>
</table>
</body>